package ntd.util.config.common.enums;

import cn.hutool.core.util.EnumUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 逻辑关系枚举
 */
@AllArgsConstructor
public enum EnumLogic implements BaseEnumInterface {

    OR("或"),
    AND("与"),
    NO("非"),
    ;

    @Getter
    private String name;

    @Override
    public String getValue() {
        return this.name();
    }

    public static EnumLogic val(String val) {
        return EnumUtil.getEnumMap(EnumLogic.class).get(val);
    }

}
